Skip to content

[BREAKING] Build the Swift demo with Swift Package Manager - #96

Open
jrosendahl-opt wants to merge 1 commit into
masterfrom
demo/swift-spm
Open

jrosendahl-opt wants to merge 1 commit into
masterfrom
demo/swift-spm

Conversation

@jrosendahl-opt

Copy link
Copy Markdown
Contributor

Why

CocoaPods trunk goes read-only on Dec 2, 2026. This is part of 2.0.0, which drops CocoaPods (together with #84). Don't merge until 1.4.0, the last CocoaPods release, has shipped.

The demo change itself doesn't affect SDK users. It's marked breaking because it belongs to the 2.0.0 set.

What Changed

  • demo-ios-swift: replaced the Pods wiring (frameworks, xcconfigs, [CP] build phases) with SPM packages: OptableSDK as a local package (..), Google Mobile Ads (from 13.11.0) and PrebidMobile (from 3.4.1), the versions the Podfile.lock pinned. Removed Podfile/Podfile.lock; Package.resolved now pins the versions. objectVersion 54 → 60 for the local package reference.
  • fastlane: the demo_swift lane builds the .xcodeproj without pod install/pod update.
  • CI: dropped the demo-ios-swift/Pods artifact upload.
  • README: the Swift demo opens the .xcodeproj directly; CocoaPods steps now apply only to demo-ios-objc.
  • .gitignore: removed demo-ios-swift.xcworkspace.

How to Test

  • xcodebuild of the demo-ios-swift scheme for the simulator succeeds
  • bundle exec fastlane demo_swift succeeds
  • Run the demo and check identify/targeting and the GAM and Prebid banners

Notes

  • Package resolution also pulls in AppLovinSDK, because the Prebid package declares it for its MAX adapters. The demo doesn't link it.

  • Prebid labels its SPM support beta.

  • docs/releasing.md still describes CocoaPods for both demos. It gets rewritten in the drop-CocoaPods PR.

  • Breaking change

  • Requires release

🤖 Generated with Claude Code

CocoaPods trunk goes read-only on Dec 2, 2026. The Swift demo now gets
OptableSDK as a local package and Google Mobile Ads and PrebidMobile from
their SPM repos, pinned in Package.resolved. The demo_swift lane builds
the .xcodeproj without pod install.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jrosendahl-opt
jrosendahl-opt marked this pull request as ready for review November 10, 2026 01:24
@jrosendahl-opt
jrosendahl-opt requested review from a team as code owners November 10, 2026 01:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant